<template>
  <div>
    <p>{{message}}</p>
    <el-button @click="btnClick">点击</el-button>
    <el-button @click="hello">点击</el-button>
  </div>
</template>

<script>
import {myMixin} from '../plugins/minxin'
export default {
  data() {
    return {
      message: "哈哈哈"
    };
  },
  created(){
      console.log('123')
  },
  mixins:[myMixin],
  methods: {
    async btnClick() {
      
      this.message = "呵呵呵";
      console.log(this.$el.textContent);
      await this.$nextTick();
      console.log(this.$el.textContent); // => '修改后的值'
      // this.$nextTick(function(){
      //     console.log(this.$el.textContent)
      // })
    },
    hello(){
        console.log('我是hello')
    }
  }
};
</script>

<style>
</style>